﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<OxiteViewModelItems<Post>>" %>
<%@ Import Namespace="Oxite.Extensions" %>
<%@ Import Namespace="Oxite.Models.Extensions" %>
<%@ Import Namespace="Oxite.Modules.Blogs.Extensions" %>
<%@ Import Namespace="Oxite.Modules.Blogs.Models" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
            <div class="sections">
                <div class="primary"><%
                    if (Html.GetSite().HasMultipleBlogs) { %><h2 class="title"><%=ViewData.GetViewContainer().GetDisplayName() %></h2><% } 
                    %><%=Html.PageState((IPageOfItems<Post>)Model.Items, (k, v) => Html.Localize(k, v))%><%
                    Html.RenderPartialFromSkin("PostListMedium");
                    %><%=Html.PostListByBlogPager((IPageOfItems<Post>)Model.Items, (k,v) => Html.Localize(k,v), ViewData.GetViewContainer().Name) %>
                </div>
                <div class="secondary"><% 
                    Html.RenderPartialFromSkin("SideBar"); %>
                </div>
            </div>
</asp:Content>
<asp:Content ContentPlaceHolderID="Title" runat="server">
    <%=Html.PageTitle(Html.GetSite().HasMultipleBlogs ? ViewData.GetViewContainer().GetDisplayName() : null) %>
</asp:Content>
<asp:Content ContentPlaceHolderID="MetaDescription" runat="server">
    <%=Html.PageDescription(((Blog)ViewData.GetViewContainer()).Description) %>
</asp:Content>
<asp:Content ContentPlaceHolderID="Scripts" runat="server"><%
    Html.RenderScriptTag("base.js"); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="HeadCustom" runat="server"><%
    Html.RenderFeedDiscoveryRss(string.Format("{0} Posts (RSS)", ViewData.GetViewContainer().GetDisplayName()), Url.Container(ViewData.GetViewContainer(), "RSS"));
    Html.RenderFeedDiscoveryAtom(string.Format("{0} Posts (ATOM)", ViewData.GetViewContainer().GetDisplayName()), Url.Container(ViewData.GetViewContainer(), "ATOM"));
    Html.RenderFeedDiscoveryRss(string.Format("All {0} Comments (RSS)", ViewData.GetViewContainer().GetDisplayName()), Url.ContainerComments(ViewData.GetViewContainer(), "RSS"));
    Html.RenderFeedDiscoveryAtom(string.Format("All {0} Comments (ATOM)", ViewData.GetViewContainer().GetDisplayName()), Url.ContainerComments(ViewData.GetViewContainer(), "ATOM"));
    Html.RenderFeedDiscoveryRss(string.Format("{0} (RSS)", Html.GetSite().DisplayName), Url.Posts("RSS"));
    Html.RenderFeedDiscoveryAtom(string.Format("{0} (ATOM)",Html.GetSite().DisplayName), Url.Posts("ATOM"));
    Html.RenderRsd(ViewData.GetViewContainer().Name);
    Html.RenderLiveWriterManifest(); %>
</asp:Content>
